Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use weak object for shareables on V8 #3839

Merged
merged 1 commit into from
Dec 8, 2022
Merged

Conversation

tomekzaw
Copy link
Member

@tomekzaw tomekzaw commented Dec 6, 2022

Summary

This PR enables weak object implementation for shareables when using V8 runtime.

As @Kudo mentioned in #3722 (comment), react-native-v8 exposes weak objects API via JSI (see here).

Test plan

Run Example app with react-native-v8 and check if everything works.

@tomekzaw tomekzaw mentioned this pull request Dec 6, 2022
6 tasks
@piaskowyk piaskowyk merged commit 3b5fe5a into main Dec 8, 2022
@piaskowyk piaskowyk deleted the @tomekzaw/use-weak-object-v8 branch December 8, 2022 19:49
kmagiera pushed a commit that referenced this pull request Dec 13, 2022
## Summary

This PR enables weak object implementation for shareables when using V8 runtime.

As @Kudo mentioned in #3722 (comment), react-native-v8 exposes weak objects API via JSI (see [here](https://github.com/Kudo/react-native-v8/blob/96a1a2c8a35349967a3ad7219106a3475b85433a/src/v8runtime/V8Runtime.cpp#L982-L997)).

## Test plan

Run Example app with react-native-v8 and check if everything works.
fluiddot pushed a commit to wordpress-mobile/react-native-reanimated that referenced this pull request Jun 5, 2023
## Summary

This PR enables weak object implementation for shareables when using V8 runtime.

As @Kudo mentioned in software-mansion#3722 (comment), react-native-v8 exposes weak objects API via JSI (see [here](https://github.com/Kudo/react-native-v8/blob/96a1a2c8a35349967a3ad7219106a3475b85433a/src/v8runtime/V8Runtime.cpp#L982-L997)).

## Test plan

Run Example app with react-native-v8 and check if everything works.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants